package com.fxb.learn;

import com.intellij.notification.*;
import com.intellij.openapi.actionSystem.AnAction;
import com.intellij.openapi.actionSystem.AnActionEvent;
import org.jetbrains.annotations.NotNull;

/**
 * 第一个插件动作
 *
 * @author wangxiyue
 * @date 2020-07-29 11:47
 * @since 1.0.0
 */
public class HelloAction extends AnAction {

    @Override
    public void actionPerformed(@NotNull AnActionEvent e) {

        NotificationGroup notificationGroup = new NotificationGroup("testid",
                NotificationDisplayType.BALLOON, false);
        Notification notification = notificationGroup.createNotification(
                "Hello , Idea Plugin ,I am coming.", NotificationType.INFORMATION
        );
        Notifications.Bus.notify(notification);
    }
}
